/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.ruralLibrary.api.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 资源使用方
 *
 * @author pig
 * @date 2023-06-29 09:59:08
 */
@Data
@TableName("book_user")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "资源使用方")
@ColumnWidth(30)
public class BookUserEntity extends Model<BookUserEntity> {

    private static final long serialVersionUID = 1L;

	/**
	* 主键id
	*/
	@ExcelProperty("id")
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description="主键id")
    private Long id;

	/**
	* 用户名
	*/

    private String userName;
	/**
	 * 密码
	 */

	private String userCode;


	/**
	* 联系电话
	*/
	@ExcelProperty("联系电话")
	@Schema(description="联系电话")
    private String phoneNumber;

	/**
	* 邮箱
	*/
	@ExcelProperty("邮箱")
	@Schema(description="邮箱")
    private String userMail;

	/**
	 * 省
	 */
	@ExcelProperty("省份")
	@Schema(description="省")
	private String province;
	/**
	 * 市
	 */
	@ExcelProperty("市")
	@Schema(description="市")
	private String city;
	/**
	 * 区
	 */
	@ExcelProperty("区县")
	@Schema(description="区")
	private String district;
	/**
	 * 村
	 */
	@ExcelProperty("街道（乡村）")
	@Schema(description="村")
	private String village;

	@ExcelProperty("居委会")
	@Schema(description="居委会")
	private String committee;

	/**
	 * 权限
	 */
	@ExcelProperty("权限")
	@Schema(description="权限")
	private String jurisdiction;
	/**
	 * createName
	 */
	@ExcelProperty("创建人")
	@Schema(description="createName")
	private String createName;

	/**
	* createTime
	*/
	@ExcelProperty("创建时间")
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="createTime")
    private LocalDateTime createTime;

	/**
	 * updateName
	 */
	@ExcelProperty("更改人")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description="updateName")
	private String updateName;

	/**
	* updateTime
	*/
	@ExcelProperty("更新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="updateTime")
    private LocalDateTime updateTime;

	/**
	* 资源使用状态：0：禁用，1：使用
	*/
	@ExcelProperty("用户状态：0：禁用，1：使用")
    @Schema(description="资源使用状态：0：禁用，1：使用")
    private String useStatus;
	/**
	 * 状态
	 */
	@ExcelProperty("状态")
	@Schema(description="状态")
	private String status;
	/**
	* 备用字段1
	*/
	@ExcelProperty("备用字段1")
    @Schema(description="备用字段1")
    private Integer col1;

	/**
	* 备用字段2
	*/
	@ExcelProperty("备用字段2")
    @Schema(description="备用字段2")
    private String col2;

	/**
	* 备用字段3
	*/
	@ExcelProperty("备用字段3")
    @Schema(description="备用字段3")
    private String col3;

	/**
	* 备用字段4
	*/
	@ExcelProperty("备用字段4")
    @Schema(description="备用字段4")
    private String col4;

	/**
	* 备用字段5
	*/
	@ExcelProperty("备用字段5")
    @Schema(description="备用字段5")
    private String col5;

	@TableField(exist=false)
	private String cityName;

	@TableField(exist=false)
	private String areaName;

	@TableField(exist=false)
	private String streetName;

	@TableField(exist=false)
	private String committeeName;

}
